using System;
using System.Collections.Generic;
using System.Text;
using Rapier.Kodachi.Shared;
using System.Drawing;

namespace Rapier.Kodachi.WebSearch
{
    /*
     * Typically, you shouldn't need to derive from the Item class, but I needed to return different images based on
     * the associated Search Engine
     */
    public class WebSearchItem : Item
    {
        public WebSearchItem(Plugin plugin, string name)
            : base(plugin, "Web Search Engine", name, "Search Engine")
        {
        }

        public Bitmap GetSearchEngineImage()
        {
            return (Properties["WebSearchEngine"] as WebSearchEngine).GetImage(Plugin as WebSearchPlugin);
        }
    }
}
